package org.walkerljl.commons.designer;

/**
 * @param <Event>
 * @author lijunlin
 */
public interface Callback<Event> {

    /**
     * On success
     *
     * @param event
     */
    void onSuccess(Event event);

    /**
     * On error
     *
     * @param event
     * @param throwable
     */
    void onError(Event event, Throwable throwable);
}
